package edu.ccut.saturn.basecomponent.dataoperationcomponent;

import java.util.ArrayList;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;

public class ObjectTranscateArrayList extends DefaultComponent {
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		String checkbox = (String) parameterContext.getParameterValue(0);
		if(checkbox!=null){
			ArrayList<String> list = new ArrayList<String>();
			String[] checkboxs = checkbox.split(",");
			for(String checkbox_item :checkboxs){
				list.add(checkbox_item);
			}
			parameterContext.setParameter(1, list);
		}
	}

}